Skip to content

Test against anonymized responses of a real tailnet - #1493

Merged
frenck merged 1 commit into
mainfrom
frenck/real-fixtures
Oct 10, 2026
Merged

frenck merged 1 commit into
mainfrom
frenck/real-fixtures

Conversation

@frenck

@frenck frenck commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Proposed Changes

(Describe the changes and rationale behind them)

The fixtures were written by hand, which is how profilePicURL went unnoticed. These are dumps of a real tailnet, made with tailscale-api dump, with everything that identifies it replaced, and all timestamps shifted by the same amount.

  • Add 16 anonymized dumps in tests/fixtures/real/, which keep the shape of what the API really returns, like the fields it leaves out and the empty values it sends.
  • Test that every one of them parses, and that the empty values of devices end up as None.

Related Issues

(GitHub link to related issues or pull requests)

@frenck frenck added the enhancement Enhancement of the code, not introducing new features. label Oct 10, 2026
@frenck
frenck merged commit 070473c into main Oct 10, 2026
33 checks passed
@frenck
frenck deleted the frenck/real-fixtures branch October 10, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement of the code, not introducing new features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant